<?php

class HomeController extends Controller{
	
	public $models = array("Pages");
	
	public function __construct(){
		parent::__construct();
	}
	
	public function index(){
		$homepage = $this->Pages->findRow("html",array("id"=>1));
		$homepage["id"] = 1;
		$this->translateRow($homepage, "pages");
		$this->assign("title", $this->template_parser->get_config_vars("welcome"));
		
		$this->assign("homepage",$homepage["html"]);
		$this->display("home/index.html");
	}

}

?>